package com.cetc32.dh.entity;

import javax.persistence.*;
import java.util.Date;

@Table(name = "data_submit")
public class DataSubmit extends NumberS{

    public DataSubmit(){}

    public DataSubmit(Integer id, String subtype, Integer plevel, Integer status, String submitor, String approver,
                      Long menuid, String menuName, Integer year, String title, String area, String path) {
        this.id=id;
        this.subtype=subtype;
        this.plevel=plevel;
        this.status=status;
        this.submitor=submitor;
        this.approver=approver;
        this.menuid=menuid;
        this.year=year;
        this.title=title;
        this.area=area;
        this.path=path;
        this.menuName=menuName;

    }


    @Id
    private Integer id;

    /**
     * '报送类型,外部接口上报或本地路径上报'
     */
    private String subtype;

    private Integer plevel;

    private Integer status;

    private String submitor;

    private String approver;

    @Column(name = "menuId")
    private Long menuid;

    private Integer year;

    private String title;

    private String area;

    private String path;

    @Column(name = "file_type")
    private String fileType;

    private Date subtime;

    @Column(name = "review_time")
    private Date reviewTime;

    @Column(name = "file_size")
    private String fileSize;

    @Column(name = "file_numbers")
    private Integer fileNumbers;

    @Column(name = "file_discription")
    private String fileDiscription;

    private String[] pathList;

    private String menuName;

     private String userId;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }



    /**
     * @return userId
     */
    public String getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取'报送类型,外部接口上报或本地路径上报'
     *
     * @return subtype - '报送类型,外部接口上报或本地路径上报'
     */
    public String getSubtype() {
        return subtype;
    }

    /**
     * 设置'报送类型,外部接口上报或本地路径上报'
     *
     * @param subtype '报送类型,外部接口上报或本地路径上报'
     */
    public void setSubtype(String subtype) {
        this.subtype = subtype;
    }

    /**
     * @return plevel
     */
    public Integer getPlevel() {
        return plevel;
    }

    /**
     * @param plevel
     */
    public void setPlevel(Integer plevel) {
        this.plevel = plevel;
    }

    /**
     * @return status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return submitor
     */
    public String getSubmitor() {
        return submitor;
    }

    /**
     * @param submitor
     */
    public void setSubmitor(String submitor) {
        this.submitor = submitor == null ? null : submitor.trim();
    }

    /**
     * @return approver
     */
    public String getApprover() {
        return approver;
    }

    /**
     * @param approver
     */
    public void setApprover(String approver) {
        this.approver = approver == null ? null : approver.trim();
    }

    /**
     * @return menuId
     */
    public Long getMenuid() {
        return menuid;
    }

    /**
     * @param menuid
     */
    public void setMenuid(Long menuid) {
        this.menuid = menuid;
    }

    /**
     * @return year
     */
    public Integer getYear() {
        return year;
    }

    /**
     * @param year
     */
    public void setYear(Integer year) {
        this.year = year;
    }

    /**
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * @return area
     */
    public String getArea() {
        return area;
    }

    /**
     * @param area
     */
    public void setArea(String area) {
        this.area = area == null ? null : area.trim();
    }

    /**
     * @return path
     */
    public String getPath() {
        return path;
    }

    /**
     * @param path
     */
    public void setPath(String path) {
        this.path = path == null ? null : path.trim();
    }

    /**
     * @return file_type
     */
    public String getFileType() {
        return fileType;
    }

    /**
     * @param fileType
     */
    public void setFileType(String fileType) {
        this.fileType = fileType == null ? null : fileType.trim();
    }

    /**
     * @return subtime
     */
    public Date getSubtime() {
        return subtime;
    }

    /**
     * @param subtime
     */
    public void setSubtime(Date subtime) {
        this.subtime = subtime;
    }

    /**
     * @return review_time
     */
    public Date getReviewTime() {
        return reviewTime;
    }

    /**
     * @param reviewTime
     */
    public void setReviewTime(Date reviewTime) {
        this.reviewTime = reviewTime;
    }

    /**
     * @return file_size
     */
    public String getFileSize() {
        return fileSize;
    }

    /**
     * @param fileSize
     */
    public void setFileSize(String fileSize) {
        this.fileSize = fileSize == null ? null : fileSize.trim();
    }

    /**
     * @return file_numbers
     */
    public Integer getFileNumbers() {
        return fileNumbers;
    }

    /**
     * @param fileNumbers
     */
    public void setFileNumbers(Integer fileNumbers) {
        this.fileNumbers = fileNumbers;
    }

    /**
     * @return file_discription
     */
    public String getFileDiscription() {
        return fileDiscription;
    }

    /**
     * @param fileDiscription
     */
    public void setFileDiscription(String fileDiscription) {
        this.fileDiscription = fileDiscription == null ? null : fileDiscription.trim();
    }



    /**
     * @param pathList
     */
    public void setPathList(String[] pathList) {
        this.pathList = pathList;
    }

    public String[]  getPathList() {
        return this.pathList;
    }

    /**
     * @param menuName
     */
    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String  getMenuName() {
        return this.menuName;
    }



    public String toString() {
        return "{" +
                "id=" + id +'\'' +
                ",subtype=" + subtype +'\'' +
                ",plevel=" + plevel + '\'' +
                ",status=" + status+'\'' +
                ",submitor=" + submitor +'\'' +
                ",approver=" + approver + '\'' +
                ",path=" + path+'\'' +
                ",year=" + year+'\'' +
                ",title=" + title+'\'' +
                ",menuName=" + menuName+'\'' +
                ",area=" + area +
                '}';
    }
}